package com.ncr.travel.tas.configuration.service.messaging;

import com.ncr.travel.tas.shared.configuration.ConfigurationKey;
import com.ncr.travel.tas.shared.configuration.ConfigurationNodeEnum;
import com.ncr.travel.tas.shared.configuration.ConfigurationProductKey;


public class ConfigurationValueCriteria extends ConfigurationNodeCriteria {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private ConfigurationKey setting;
	private String compositeKey;

	public ConfigurationValueCriteria(ConfigurationNodeEnum type,
			ConfigurationProductKey product,ConfigurationKey key) {
		super(type, product);
		this.setting = key;
		this.compositeKey = type.name() + product.name() + key.name();
	}

	public ConfigurationKey getSetting() {
		return setting;
	}

	public void setSetting(ConfigurationKey setting) {
		this.setting = setting;
	}

    /**
     * Retrieves the current value for <code>compositeKey</code>.
     *
     * @return the <code>compositeKey</code> value
     */
    public String getCompositeKey() {
        return this.compositeKey;
    }

}
